package ah.szxy.conf;

import org.springframework.cloud.client.loadbalancer.LoadBalanced;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.client.RestTemplate;

/**
 * @author caohaiyang
 * @create 2020-09-17 下午 05:33
 */
@Configuration
public class HttpUtilConfig {

    @LoadBalanced //ribbon整合
    @Bean
    public RestTemplate restTemplate(){
        return new RestTemplate();

    }
}